package com.hngy.xpq.shoppingcartmodule.ui.home;

import android.view.View;

import androidx.lifecycle.ViewModel;

import com.hngy.xpq.shoppingcartmodule.bean.Cart;
import com.hngy.xpq.shoppingcartmodule.bean.Shop;
import com.hngy.xpq.shoppingcartmodule.database.SqlCart;
import com.hngy.xpq.shoppingcartmodule.database.SqlShop;

import java.util.List;

public class HomeViewModel extends ViewModel {

    public List<Shop> getListShop(SqlShop sqlShop) {
        return sqlShop.select();
    }

    public List<Cart> getCartList(SqlCart sqlCart, View root) {
        return sqlCart.select(root);
    }

}